package jklog

import (
    "os"
)

var l = New(os.Stdout, "[JK]", LstdFlags)

func L() *Logger {
    return l
}

/*
 * name what you want to set in prefix
 * flag: -1 for defulat
 */
func Lext(name string, flag int) *Logger{
    if flag == -1 {
        l = New(os.Stdout, name, LstdFlags)
    } else {
        l = New(os.Stdout, name, flag)
    }
    return l
}

func Lown(name string, flag int) *Logger {
    if flag == -1 {
        return New(os.Stdout, name, LstdFlags)
    } else {
        return New(os.Stdout, name, flag)
    }
    return nil
}

